package com.hexacta.radio.model;

public class Dial {

	private Long id;
	
	private String dial;
	private String name;
	
	public Dial() {
		// Para Hibernate
	}
	
	public Dial(String dial, String name) { 
		this.dial = dial;
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDial() {
		return dial;
	}

	public void setDial(String dial) {
		this.dial = dial;
	}

	public String getDisplay() {
		if(this.name == null || this.name.isEmpty()) {
			return this.dial.toString(); 
		}
		
		return this.name + " - " + this.dial;
	}
	
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
}
